<?php

namespace app\controller;

use app\BaseController;

// use think\facade\Config;
// use think\facade\Env;


class Index extends BaseController
{
    public function index(): string
    {
        return 'ThinkPHP is nice!';
    }

    public function hello($name = 'ThinkPHP6'): string
    {
        return 'hello,' . $name;
    }

    public function config()
    {
        // return Env::get('database.hostname');
        // echo '<pre>';
        // return json(Config::get());
        //echo Env::has('database.hostname');
        // echo Config::has('database.connections.mysql.hostname');
    }
}
